package net.wofly.sale.commodity.service;

import java.util.List;

import net.wofly.framework.dao.PageWrapper;
import net.wofly.framework.util.ReturnBean;
import net.wofly.sale.commodity.domain.Brand;

public interface IBrandService {

	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	public ReturnBean<Brand> save(Brand brand);
	
	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	public ReturnBean<Brand> update(Brand brand);

	/**
	 * 删除
	 * 
	 * @param entity
	 * @return
	 */
	public ReturnBean<String> delete(Brand brand);

	/**
	 * 根据主键ID删除
	 * 
	 * @param key
	 * @return
	 */
	public ReturnBean<String> delete(String brandID);

	/**
	 * 根据主键查询
	 * 
	 * @param key
	 * @return
	 */
	public Brand findOne(String brandID);
	
	/**
	 * 根据主键查询品牌详情
	 * 
	 * @param key
	 * @return
	 */
	public ReturnBean<Brand> getBrand(String brandID);
	
	public ReturnBean<List<Brand>> save(List<Brand> brandList) ;
	
	public ReturnBean<List<Brand>> findAllBrandByStatus(Integer status) ;
	
	public ReturnBean<PageWrapper<Brand>> findAllBrandByStatus(String brandName, String companyName, Integer pageNum,Integer pageSize ,Integer status) ;
}
